
#include <cgic.h>
// 接收数据的方式cgiQueryString，只接收get请求
extern char *cgiQueryString;
int cgiMain() {
    cgiHeaderContentType("text/html");
	fprintf(cgiOut, "<HTML><HEAD> <meta charset=\"UTF-8\"> \n");
	fprintf(cgiOut, "<TITLE>cgic测试</TITLE></HEAD>\n");
	fprintf(cgiOut, "<BODY><H1>操作成功! 请求数据=%s</H1>\n",cgiQueryString);
    fprintf(cgiOut,"</BODY></HTML>");
    return 0;
}